import React, { Component } from "react";
import { Button, WhiteSpace, WingBlank } from "antd-mobile";
class antdMobile extends Component {
    goList = () => {
        // console.log(this.props);
        // 路由跳转
        this.props.history.push("/menu");
    };
    render() {
        return (
            <div>
                <WingBlank style={{ margin: 20 }}>
                    <Button type="primary" onClick={this.goList}>
                        跳转路由
                    </Button>
                    <WhiteSpace />
                    <Button disabled>default disabled</Button>
                    <WhiteSpace />
                </WingBlank>
            </div>
        );
    }
}

export default antdMobile;
